<?php
include_once 'dbconn.php';
$_SESSION = array();
session_start();
$strSQL = "delete from sessions where user = ".$_SESSION['userid']."";
$result  = mysql_query ($strSQL) or die(mysql_error());
session_destroy();
header('location: index.html');
exit();
?>